#!/bin/bash

backup_dir="/data"
backup_file="/home/backup/backup_$(date +%Y%m%d).tar.gz"

tar -czf "$backup_file" -C "$backup_dir" .
echo "Резервная копия создана: $backup_file"
